package com.anxuan.demo.test;

import com.anxuan.demo.model.School;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class beantest2 {
    public static void main(String[] args) {
        ApplicationContext ctx = new ClassPathXmlApplicationContext("springBean.xml");
        School school = ctx.getBean(School.class);
        System.out.println(school);
    }
}
